package com.lib724.web;

import java.util.LinkedHashMap;
import java.util.Map;

public class ModelAndError<T> {

	public Map<String, String> getError() {
		return error;
	}

	public void addError(String key, String mess) {
		if (error == null)
			error = new LinkedHashMap<String, String>(2);
		error.put(key, mess);
	}

	public T getModel() {
		return model;
	}

	public void setModel(T model) {
		this.model = model;
	}

	private Map<String, String> error;
	
	private T model;
}
